]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Destroy GjsContext before exit
authorPhilip Chimento <philip@endlessm.com>
Sat, 10 Dec 2016 02:50:39 +0000 (18:50 -0800)
committerPhilip Chimento <philip@endlessm.com>
Sat, 10 Dec 2016 02:50:39 +0000 (18:50 -0800)
This will be required in the upcoming version of GJS.

https://bugzilla.gnome.org/show_bug.cgi?id=775374

src/run-js-test.c

index bd76d9568057f4ad941d9a506b16ba8d84e94c7b..5fb077c2dcf206e7fdbad244d585970529f33c51 100644 (file)
@@ -127,6 +127,7 @@ main(int argc, char **argv)
   gjs_context_gc (js_context);
   gjs_context_gc (js_context);
 
+  g_object_unref (js_context);
   g_free (script);
   exit (code);
 }